{% extends 'base.html' %}

{% block content %}
    {#	start: Sidebar#}
    <div class="fixed left-0 top-0 w-64 h-full bg-base-200 p-4">
        <a href="#" class="flex items-center pb-4 border-b border-b-gray-400">
            <img src="https://placehold.co/32x32" alt="" class="w-8 h-8 rounded object-cover">
            <span class="text-lg font-bold ml-3">Logo</span>
        </a>
        <ul class="menu bg-base-200 rounded-box w-56">
            <li><a href="/blog1/" class="menu-item">调度中心</a></li>
            <li>
                <details open>
                    <summary>元数据管理</summary>
                    <ul>
                        <li>
                            <a href="{% url 'blog:index' %}"
                               class="{% if request.resolver_match.namespace == 'blog' and request.resolver_match.url_name == 'index' %}menu-active{% endif %}">技术元数据</a>
                        </li>
                        <li>
                            <a href="{% url 'blog:index2' %}"
                               class="{% if request.resolver_match.namespace == 'blog' and request.resolver_match.url_name == 'index2' %}menu-active{% endif %}">管理元数据</a>
                        </li>
                        <li>
                            <details open>
                                <summary>业务元数据</summary>
                                <ul>
                                    <li><a href="/metadata/business/process" class="menu-item">业务过程管理</a></li>
                                    <li><a href="/metadata/business/term" class="menu-item">业务术语</a></li>
                                </ul>
                            </details>
                        </li>
                    </ul>
                </details>
            </li>
            <li><a href="/docs/" class="menu-item">文档中心</a></li>
        </ul>


    </div>
    {#	end: Sidebar#}
{% endblock %}